lcBlockAddText3 Home

Adds a new text object into a block. The text will be fitted between 2 points.

 HANDLE lcBlockAddText3 (
   HANDLE hBlock,
   LPCWSTR szText,
   double X1,
   double Y1,
   double X2,
   double Y2,
   int Align,
   double HW,
   double Oblique
 );

Parameters
hBlock
  Handle to a block.
szText
  Text string. It can contain formatting codes which allow to add specific characters.
X1 Y1
  Left bottom position of the text.
X2 Y2
  Right bottom position of the text.
Align
  Text alignment. Can be either LC_TA_ALIGNED or LC_TA_FIT value.
HW
  Height or width scale, depends of the Align value.
If Align=LC_TA_ALIGNED then HW is width scale (height will be adjusted),
If Align=LC_TA_FIT then HW is height (width scale will be adjusted).
Oblique
  Oblique angle for text characters.

Return Value

  Handle to created text object or NULL if the function fails.

Remarks

  If zero is specified for parameters Height, WScale or Oblique, then text style values will be used for this text object.

See Also

  lcBlockAddTextText style